<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>个人中心</title>
<link href="${ctxStatic }/index/css/Personal.css" rel="stylesheet">
<script src="${ctxStatic }/jquery/jquery-1.8.3.min.js"></script>
<script src="${ctxStatic }/index/js/Personal.js"></script>
<script type="text/javascript">
	$(function(){
		//<c:if test="${fromPage == 'pwd'}">
		$('#inf_safe').trigger('click');
		//</c:if>
	});
</script>
</head>
<body>
<%@ include file="/WEB-INF/views/layouts/head.jsp" %>
    <div class="container">
    <c:set var="siderMenuName" value="个人中心"/>
       <%@ include file="/WEB-INF/views/modules/base/siderMenu.jsp"%>
            <div id="tab1" class="tab_content"style="float: right;" >

                <ul class="tabs_0">
                    <li><a href="#tab4" id="inf_personal">信息设置</a></li>&nbsp;&nbsp;&nbsp;
                    <li><a href="#tab5" id="inf_safe">密码重置</a></li>
                </ul>
     <div class="sor"></div>

          <div id="tab4"  class="tabs_content">
                <div class="set">
                <form id="modifyInfoForm" action="${ctxFront }/modifyInfo" method="post">
				<input type="hidden" name="id" value="${user.id }"/>
				<div id="inf_personal_con" class="container_information">
					<c:if test="${sessionScope.front_user.office.parent.id ne '3' }">
						  <dd class="nickname">
    <span class="nickname_0">昵称&nbsp;&nbsp;</span>
    <input type="text" name="name" value="${user.name }"  class="nickname_1"/>
    </dd>
    <dd class="mailbox">
        <span class="mailbox_0">邮箱&nbsp;&nbsp;</span>
        <input type="text" name="email" value="${user.email }" class="nickname_1" id="email"/>
    </dd>
    <dd class="contact">
        <span class="contact_0">联系电话&nbsp;&nbsp;</span>
        <input type="text" name="mobile" value="${user.mobile }" disabled class="nickname_1"/>
    </dd>
					</c:if>
					<c:if test="${sessionScope.front_user.office.parent.id eq '3' }">
					 <dd class="nickname">
    <span class="nickname_0">企业名称&nbsp;&nbsp;</span>
    <input type="text" disabled value="${user.office.name }" class="nickname_1"/>
    </dd>
    <dd class="mailbox">
        <span class="mailbox_0">常用邮箱&nbsp;&nbsp;</span>
        <input type="text" name="email" value="${user.email }" class="nickname_1"/><span class="red">*</span>
    </dd>
    <dd class="contact">
        <span class="contact_0">默认经办人&nbsp;&nbsp;</span>
        <input type="text" name="name" value="${user.name }" class="nickname_1"/>
    </dd>
    <dd class="contact">
        <span class="contact_0">经办人手机&nbsp;&nbsp;</span>
        <input type="text" value="${user.mobile }" disabled class="nickname_1"/>
    </dd>
					</c:if>
					<div>	
					<input type="button" class="keep" name=""value="保存" onclick="$('#modifyInfoForm').submit();">
					<span id="tips1"><font color='red' size='3'>${message}</font></span>
					</div>
				</div>
			</form>
                </div>
          </div>

                <div id="tab5"  class="tabs_content" style="display: none">
                <form id="modifyPwdForm" action="${ctxFront }/modifyPwd" method="post">
                    <div class="set">
                        <dl>
                            <dd class="orginal_password">
                                <span class="nickname_0">原始密码&nbsp;：&nbsp</span>
                                <input class="nickname_1" name="oldPassword" type="password">
                            </dd>
                            <dd class="new_password">
                                <span class="mailbox_0">新密码&nbsp;：&nbsp</span>
                                <input class="mailbox_1" name="newPassword" type="password">
                            </dd>
                            <dd class="confirm_password">
                                <span class="contact_0">确认密码&nbsp;：&nbsp</span>
                                <input class="contact_1" type="password" name="repeatPassword"/>
                            </dd>
                        </dl>
                        <input type="button" class="keep" onclick="$('#modifyPwdForm').submit();" value="保存">
                        <span id="tips1"><font color='red' size='3'>${message1}</font></span>
                    </div>
                    </form>
                </div>
            </div>
</div>
</body>
<%@ include file="/WEB-INF/views/layouts/foot.jsp" %>
